package com.tw.trips.ui.mock;

import java.util.HashSet;
import java.util.Set;


import com.tw.trips.domain.Location;
import com.tw.trips.domain.Update;

public class LocationMock {
	public Location getLocation() {
		Location location = new Location();
		
		location.setName("Chennai");
		
		Set<Update> updates = new HashSet<Update>();
		
		for(int i=0;i<20;i++) {
			Update update = new UpdateMock().getUpdate("Update No "+i, location);
			updates.add(update);
		}
		location.getUpdates().addAll(updates);
		return location;
	}
}
